package com.hkrt.demo.data.response

import android.text.TextUtils

import java.io.Serializable

/**
 * @author 陈金广
 * @date 2018/4/4.
 */

open class BaseResponse : Serializable {
    var msg: String? = null
    var code: String? = null
    var session: String? = null
    var rspmsg: String? = null
        get() = if (!TextUtils.isEmpty(field)) {
            field
        } else {
            if (!TextUtils.isEmpty(exception)) {
                "服务器异常"
            } else "服务器连接失败"
        }
    var exception: String? = null

    var content: String? = null
        get() = if (!TextUtils.isEmpty(field)) {
            field
        } else {
            if (!TextUtils.isEmpty(exception)) {
                "服务器异常"
            } else "服务器连接失败"
        }

//    var Content: String? = null
//        get() = if (!TextUtils.isEmpty(field)) {
//            field
//        } else {
//            if (!TextUtils.isEmpty(exception)) {
//                "服务器异常"
//            } else "服务器连接失败"
//        }

}

